﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace TCMS.Models
{
    public interface TaskDAO
    {
        List<TaskEntity> getTasksByPlanner(string planner);
        TaskEntity getSingleTaskByShop(string shopName);
        TaskEntity GetSingleTaskById(int id);

        List<TaskEntity> getAllTasksByShop(string shopName);

        List<TaskEntity> addNewTask(TaskEntity newTask);
        List<TaskEntity> searchTasksByDate(string planner, DateTime startTime, DateTime endTime);
        List<TaskEntity> getTasksByManagerSearch(string department, string team, string shopfloor, DateTime startTime, DateTime endTime);
        List<TaskEntity> Search(int? page, int? pagesize, string department, string team, string shopFloor, DateTime? from, DateTime? to);

        IEnumerable<string> GetDepartments();
        IEnumerable<string> GetTeams();
    }
}